package com.baolai.tool;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class Md5PwdTool {

    public static String MD5Pwd(String account,String password) {
        ByteSource salt = ByteSource.Util.bytes(account + "salt");
        String md5Pwd = new SimpleHash("md5",password,salt,2).toHex();
        return md5Pwd;
    }
}
